package com.happts.Entity;

public class RECORD {
    private String name;
    private String address;
    private String cite; // 代收点
    private String number; // 单号
    private int weight;
    private double vegRate; // 菜籽油调率
    private double refinedRate; // 精制油调率
    private double leftVeg;  // 可取菜籽油数量
    private double leftRefined; // 可取精制油数量

    public RECORD(String name, String address, String cite, String number, int weight, double vegRate, double refinedRate){
        this.name = name;
        this.address = address;
        this.cite = cite;
        this.number = number;
        this.weight = weight;
        this.vegRate = vegRate;
        this.leftVeg = this.vegRate*this.weight;
        this.refinedRate = refinedRate;
        this.leftRefined = this.refinedRate*this.weight;
    }

    public RECORD(String name,String address,String cite,String number,int weight,double vegRate,double leftVeg,double refinedRate,double leftRefined){
        this.name = name;
        this.address = address;
        this.cite = cite;
        this.number = number;
        this.weight = weight;
        this.vegRate = vegRate;
        this.leftVeg = leftVeg;
        this.refinedRate = refinedRate;
        this.leftRefined = leftRefined;
    }

    public String getName(){
        return this.name;
    }
    public String getAddress(){
        return this.address;
    }
    public String getCite(){
        return this.cite;
    }
    public String getNumber(){
        return this.number;
    }
    public int getWeight(){
        return this.weight;
    }
    public double getVegRate(){
        return this.vegRate;
    }
    public double getLeftVeg() {
        return this.leftVeg;
    }
    public double getLeftRefined() {
        return this.leftRefined;
    }
    public double getRefinedRate() {
        return this.refinedRate;
    }

    public void setLeftVeg(double leftVeg) {
        this.leftVeg = leftVeg;
    }

    public void setLeftRefined(double leftRefined) {
        this.leftRefined = leftRefined;
    }

    public void setWeight(int Weight){
        this.weight = Weight;
    }
}
